﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.ComponentModel;
using DoAnWeb.DTO;
using DoAnWeb.DAO;

namespace DoAnWeb.BUS
{
    public class SanPhamBUS
    {
        private SanPhamDAO DAO = new SanPhamDAO();
        public BindingList<SanPhamDTO> GetList()
        {
            return DAO.GetList();
        }
        public SanPhamDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }
        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }
        public bool Add(SanPhamDTO _DTO)
        {
            return DAO.Add(_DTO);
        }
        public bool Update(SanPhamDTO _DTO)
        {
            return DAO.Update(_DTO);
        }
    }
}